<?php

namespace App\Library\Service;

use App\Library\Logic\SlideLogic;
use Illuminate\Http\JsonResponse;

class SlideService extends BaseService
{
    /**
     * @param SlideLogic $logic
     */
    public function __construct(SlideLogic $logic)
    {
        $this->logic = $logic;
    }

    /**
     * list
     * @return JsonResponse
     */
    public static function list(): JsonResponse
    {
        return success(SlideLogic::list());
    }
}
